/**
 * Created by hms on 2020-08-18.
 */
import Vue from 'vue';
import Vuex from 'vuex'

//挂载
Vue.use(Vuex);

import { Login } from './modules/Login.js';
import { Menu } from './modules/Menu.js';
import { Page } from './modules/Page.js';

//创建VueX对象
const store = new Vuex.Store({
    state:{
        //分页配置
        page_sizes:[20,50,100],
        //默认页面条数,
        default_page_size:20,
        allusertype:[
            { value:'1',label:'伤残人员' },
            { value:'2',label:'解放战争时期在乡老复员军人' },
            { value:'3',label:'建国后入伍在乡老复员军人' },
            { value:'4',label:'带病回乡退伍军人' },
            { value:'5',label:'两参人员' },
            { value:'6',label:'60周岁烈士子女' },
            { value:'7',label:'60周岁退役士兵' },
            { value:'8',label:'烈属' },
            { value:'9',label:'因公牺牲军人遗属' },
            { value:'10',label:'病故军人遗属' },
            { value:'11',label:'无军籍退休退职职工' },
            { value:'12',label:'无军籍遗属' }
        ],
        //伤残人员子分类
        allchildtype:[
            { value:'一级',label:'一级',children:[
              { value:'因战',label:'因战',name:'type111' },
              { value:'因公',label:'因公',name:'type112'},
              { value:'因病',label:'因病',name:'type113' },
            ] },
            { value:'二级',label:'二级',children:[
              { value:'因战',label:'因战',name:'type121' },
              { value:'因公',label:'因公',name:'type122' },
              { value:'因病',label:'因病',name:'type123' },
            ] },
            { value:'三级',label:'三级', children:[
              { value:'因战',label:'因战',name:'type131' },
              { value:'因公',label:'因公',name:'type132' },
              { value:'因病',label:'因病',name:'type133' },
            ] },
            { value:'四级',label:'四级',children:[
              { value:'因战',label:'因战',name:'type141' },
              { value:'因公',label:'因公',name:'type142' },
              { value:'因病',label:'因病',name:'type143' },
            ] },
            { value:'五级',label:'五级',children:[
              { value:'因战',label:'因战',name:'type151' },
              { value:'因公',label:'因公',name:'type152' },
              { value:'因病',label:'因病',name:'type153' },
            ] },
            { value:'六级',label:'六级',children:[
              { value:'因战',label:'因战',name:'type161' },
              { value:'因公',label:'因公',name:'type162' },
              { value:'因病',label:'因病',name:'type163' },
            ] },
            { value:'七级',label:'七级',children:[
              { value:'因战',label:'因战',name:'type171' },
              { value:'因公',label:'因公',name:'type172' },
            ] },
            { value:'八级',label:'八级',children:[
              { value:'因战',label:'因战',name:'type181' },
              { value:'因公',label:'因公',name:'type182' },
            ] },
            { value:'九级',label:'九级',children:[
              { value:'因战',label:'因战',name:'type191' },
              { value:'因公',label:'因公',name:'type192' },
            ] },
            { value:'十级',label:'十级',children:[
              { value:'因战',label:'因战',name:'type1101' },
              { value:'因公',label:'因公',name:'type1102' },
            ] }
        ]
    },
    modules:{
      Login,
      Menu,
      Page
    }
})
export default store
